import Vue from "vue"
import Vuex from "vuex"
import state from "./lib/state"
import getters from "./lib/getters"
import mutations from "./lib/mutations"
import actions from "./lib/actions"
import modules from "./lib/modules"

Vue.use(Vuex)

export interface State {
  [key: string]: any
}

const store = {
  getters,
  state,
  mutations,
  actions,
  modules,
}
export default new Vuex.Store(store)
